package myandroid.net.DTO;

public class DTO_Setting {
	
	private String gLanguage;		//lua chon ngon ngu
	private int gWaringBefore;	//thoi gian canh bao truoc cho cong viec sap toi
	private int gTimeWaring;		//so lan canh bao cho cong viec sap toi
	private int gTypeWaring;		//canh bao theo kieu gi
	
	public DTO_Setting() {
		this.gLanguage = null;
		this.gWaringBefore = 5;
		this.gTimeWaring = 2;
		this.gTypeWaring = 1;
	}
	
	public DTO_Setting(String mLanguage, int mWaringBefore,
			int mTimeWaring, int mTypeWaring){
		
		this.gLanguage = mLanguage;
		this.gWaringBefore = mWaringBefore;
		this.gTimeWaring = mTimeWaring;
		this.gTypeWaring = mTypeWaring;
	}
	
	public String getgLanguage() {
		return gLanguage;
	}
	public void setgLanguage(String gLanguage) {
		this.gLanguage = gLanguage;
	}
	public int getgWaringBefore() {
		return gWaringBefore;
	}
	public void setgWaringBefore(int gWaringBefore) {
		this.gWaringBefore = gWaringBefore;
	}
	public int getgTimeWaring() {
		return gTimeWaring;
	}
	public void setgTimeWaring(int gTimeWaring) {
		this.gTimeWaring = gTimeWaring;
	}
	public int getgTypeWaring() {
		return gTypeWaring;
	}
	public void setgTypeWaring(int gTypeWaring) {
		this.gTypeWaring = gTypeWaring;
	}

	@Override
	public String toString() {
		
		String str = gLanguage.toString() + "\t|";
		str += String.valueOf(gWaringBefore) + "\t|";
		str += String.valueOf(gTimeWaring) + "\t|";
		str += String.valueOf(gTypeWaring) + "\t|";
		return str;
	}
}
